<?php
/**
 * CarColor
 *  
 * @author x
 * @version 
 */

class Model_CarColor extends Zend_Db_Table_Abstract
{
    /**
     * The default table name
     */
    protected $_name = 'tcl_car_color';
    
    

    public function getAllColor() {
    
        $results = $this->fetchAll("1 = 1","sort");
    
        return $results;
    }
    
    public function getColorName($id){
        
        $db = $this->getAdapter();
        $where = $db->quoteInto("id = ?", $id);
        $results = $this->fetchRow($where)->toArray();
         
        return $results;
    }
}
